]> dgit.raspbian.org Git - gnome-shell.git/commit
authPrompt: Consume cancel key event
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 14 May 2024 23:55:40 +0000 (01:55 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 22 May 2024 10:11:00 +0000 (10:11 +0000)
commite7dc0de75ea3e44795ddca64267eff03992ce82f
tree7195547d2a4509dca8f4e96e0632223e0ad0a968
parentdac4f2cb862ce3f561faaa5a8a316377758b7c0b
authPrompt: Consume cancel key event

The auth prompt currently propagates all key presses, even the
Escape press that is used to cancel it.

On the lock screen that means that the same event that cancels
the prompt (and switches back to the clock) is *also* propagated
to the handler that activates the prompt on key press.

That handler doesn't do anything when the prompt is already visible,
which is the case when the transition to the clock is animated.

However when animations are disabled, canceling the prompt will
result in a new prompt getting created immediately, and the login
screen is stuck on the prompt.

Fix this by not propagating key events that are used to cancel
the prompt.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3317>
js/gdm/authPrompt.js